package com.lanou3g.myapplication.activity.singleton.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.Window;

import com.lanou3g.myapplication.R;

import java.util.Timer;
import java.util.TimerTask;

/**
 * Created by dllo on 16/1/8.
 */
public class WelcomeActivity extends BaseActivity{


    @Override
    protected int setLayout() {
        return R.layout.activity_welcome;
    }

    @Override
    protected void initView() {
        final Intent intent=new Intent();
        Timer timer=new Timer();
        TimerTask task=new TimerTask() {
            @Override
            public void run() {
                intent.setClass(WelcomeActivity.this,MainActivity.class);
                startActivity(intent);
                finish();
            }

        };timer.schedule(task,5000);
    }

    @Override
    protected void initData() {

    }
}
